<template>
  <div class="titleContent">
    <div class="titleName">
      <div class="block"></div>
      <span class="collapse-title">{{ title }}</span>
    </div>
  </div>
</template>

<script setup name="titleName">
const props = defineProps({
  title: {
    type: String,
    required: true,
    default: '标题'
  }
})
</script>

<style lang="scss" scoped>
.titleContent {
  .titleName {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  .block {
    width: 5px;
    display: inline-block;
    height: 16px;
    background-color: rgb(62, 146, 255);
    margin-right: 8px;
    margin-left: -14px;
  }
  .collapse-title {
    font-weight: 600;
  }
}
</style>
